home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000318_news@columbia.edu _Tue May 23 10:38:12 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id KAA15586
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 23 May 2000 10:38:11 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA09935
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 23 May 2000 10:38:11 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id KAA05772
  10.     for kermit.misc@watsun.cc.columbia.edu; Tue, 23 May 2000 10:26:15 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: fdc@columbia.edu (Frank da Cruz)
  13. Subject: Re: FTP'ing to a VMS box
  14. Date: 23 May 2000 14:26:14 GMT
  15. Organization: Columbia University
  16. Message-ID: <8ge4e6$5k9$1@newsmaster.cc.columbia.edu>
  17. To: kermit.misc@columbia.edu
  18.  
  19. In article <8gdtge$q3u$1@murrow.sp.trw.com>,
  20. Dean Richard Benson <dean.benson@remove_metrw.com> wrote:
  21. : I am coding a VB application which takes a file from a VMS
  22. : system (via FTP), and allows the user to edit the file on the PC.
  23. : Once the user is happy with the new file, the application then
  24. : FTP's it back onto the VMS system ready for use.
  25. : The problem that I am having is that when I issue a DIR command
  26. : from FTP and try to parse the results, CR's appear when there is
  27. : a long file name.  Normally I would expect only a list of files, but
  28. : I actaully get a list of files, file information, ownerships etc.
  29. : Is there a way that anyone knows of controlling the returns from
  30. : FTP commands.  Documents that I have read on FTP state that the
  31. : host controls the format, but I havent a clue how!
  32. You could use Kermit rather than FTP.  In fact, Kermit 95 already comes
  33. with a "netedit" feature that does exactly what you're working on:
  34.  
  35.   http://www.columbia.edu/kermit/
  36.  
  37. You can see the netedit procedure here:
  38.  
  39.   http://www.columbia.edu/kermit/ckscripts/
  40.  
  41. This procedure assumes the user already has a connection to the remote
  42. computer and is logged in to it, but it's easy to add the pieces to
  43. accomplish the connection too if required; they are available in other
  44. scripts in the same library.
  45.  
  46. As for parsing directory listings...  The Kermit netedit procedure
  47. assumes you know the name of the file you want to edit.  But if you
  48. want to allow the user to browse through directories, this can be done
  49. in a much more straightforward way than with FTP, since you don't have
  50. to parse bizarre platform- and environment-dependent directory
  51. listings.  The client can tell the server "make a list of all the files
  52. that match *.txt" (or whatever); "now send me the name of the first
  53. file", "now send me the name of the next file", and so on.
  54.  
  55. - Frank